#! /usr/bin/env python
# -*- coding:utf-8 -*-
# author:无涯

import  hashlib
from urllib import  parse
import  time as t

def sign():
  dict1 = {"name": "wuya", "age": 18, "city": "xian", "work": "testDev", "nowTime": t.time()}
  data=sorted(dict1.items(),key=lambda item:item[0])
  data=parse.urlencode(data)
  m=hashlib.md5()
  m.update(data.encode('utf-8'))
  return m.hexdigest()
